pkgname=vdr-dxr3
pkgver=0.2.7
pkgrel=1
arch=('i686')
pkgdesc="DXR3/Hollywood+ MPEG decoder card plugin for VDR"
url="http://sourceforge.net/projects/dxr3plugin/"
license=('GPL')
depends=('vdr' 'ffmpeg')
source=(http://dl.sourceforge.net/sourceforge/dxr3plugin/$pkgname-$pkgver.tgz)
md5sums=('2444e0fc5ac7912119df09327b185c47')

build() {
  cd $startdir/src/dxr3-$pkgver

  sed -i \
  	 -e 's:/usr/local/include/ffmpeg:/usr/include/ffmpeg:' \
	 -e 's:@cp --remove-destination $@ :install -D -m 755 $@ $(DESTDIR):' \
	 Makefile
  make VDRDIR=/usr/include/vdr LIBDIR=/usr/lib/vdr DESTDIR=$startdir/pkg all || return 1
}
